package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-07-25 15:42
 */
public class Test02 {
    public static void main(String[] args) {
        String s1="aaa";
        String s2="aaa";
        String s3=new String("aaa");
        String s4=new String("aaa");
        System.out.println(s1==s2);
        System.out.println(s1.equals(s2));
        System.out.println(s3==s4);
        System.out.println(s3.equals(s4));

        String s5="aaa";
        System.out.println(s1==s5);
    }
}
